package br.com.salaodebeleza.business;

import javax.inject.Inject;

import br.com.salaodebeleza.domain.TbGrupo;
import br.com.salaodebeleza.persistence.TbGrupoDAO;
import br.gov.frameworkdemoiselle.stereotype.BusinessController;
import br.gov.frameworkdemoiselle.template.DelegateCrud;

@BusinessController
public class TbGrupoBC extends DelegateCrud<TbGrupo, Long, TbGrupoDAO> {
	
	private static final long serialVersionUID = 1L;
	
	@Inject
	private TbGrupoDAO tbGrupoDAO;

	public TbGrupo getByNome(String grupo) {
		return tbGrupoDAO.getByNome(grupo);
	}
	
}
